package com.yunpeng.dishes.common.dtos.business;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * DishesSaveDTO 菜品保存时传输对象
 *
 * @author : Moore(hemw)
 * @date : 2020-03-27
 */
public class DishesSaveDTO implements Serializable {

    /**
     * 菜品名称
     */
    private String name;

    /**
     * 菜品重量
     */
    private BigDecimal weight;

    /**
     * 添加用户
     */
    private Long userId;

    /**
     * 添加商户id
     */
    private Long merchantId;

    /**
     * 商家菜品id
     */
    private Long merchantDishesId;

    /**
     * 菜品食材
     */
    private List<DishesFoodSaveDTO> dishesFoodList;

    public DishesSaveDTO() {
    }

    public DishesSaveDTO(String name, BigDecimal weight, Long userId, Long merchantId, Long merchantDishesId, List<DishesFoodSaveDTO> dishesFoodList) {
        this.name = name;
        this.weight = weight;
        this.userId = userId;
        this.merchantId = merchantId;
        this.merchantDishesId = merchantDishesId;
        this.dishesFoodList = dishesFoodList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public List<DishesFoodSaveDTO> getDishesFoodList() {
        return dishesFoodList;
    }

    public void setDishesFoodList(List<DishesFoodSaveDTO> dishesFoodList) {
        this.dishesFoodList = dishesFoodList;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getMerchantDishesId() {
        return merchantDishesId;
    }

    public void setMerchantDishesId(Long merchantDishesId) {
        this.merchantDishesId = merchantDishesId;
    }

    @Override
    public String toString() {
        return "DishesSaveDTO{" +
                "name='" + name + '\'' +
                ", weight=" + weight +
                ", userId=" + userId +
                ", merchantId=" + merchantId +
                ", merchantDishesId=" + merchantDishesId +
                ", dishesFoodList=" + dishesFoodList +
                '}';
    }
}
